﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;

using System.Windows.Browser;

namespace LEEAAttendanceControl.Views
{
    public partial class AccountingPeriod : Page
    {
        public AccountingPeriod()
        {
            InitializeComponent();
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            App myApp = (App)Application.Current;

            myApp.ClearEvents();
        }

        private void ApplyButton_Click(object sender, RoutedEventArgs e)
        {
            /*
            string url = "http://localhost:" + HtmlPage.Document.DocumentUri.Port
                + "/ReportPages/EmployeeReport.aspx";

            HtmlPage.Window.Navigate(new Uri(url), "_newWindow"
                , "resizable=1,scrollbars=1,status=1,top=0,left=0");
            */

            /*
            HtmlPage.Window.Navigate(new Uri(url), "_newWindow"
                , "toolbar=1,menubar=1,resizable=1,scrollbars=1,status=1,top=0,left=0");
            */

            /*
            HtmlPopupWindowOptions options = new HtmlPopupWindowOptions();

            options.Top = 0;
            options.Left = 0;

            options.Width = 1000;
            options.Height = 650;

            options.Menubar = true;
            options.Resizeable = true;
            options.Scrollbars = true;
            options.Status = true;
            options.Toolbar = true;

            if (HtmlPage.IsPopupWindowAllowed)
            {
                HtmlPage.PopupWindow(new Uri("http://teedoz.com/"), "new", options);
            }
            */
        }
    }
}
